package laya.semi.process;

import java.util.*;
import java.text.*;

import org.apache.log4j.Logger;

public class IteratorElementRenderActivity
	implements IGenericClassActivity
{
	private static Logger log = Logger.getLogger(IteratorElementRenderActivity.class);

	public void execute(IProcessContext oCtx)
		throws Exception
	{
		String[] vParam = oCtx.getActivityParameter().split(":");
		
		Iterator it = (Iterator)oCtx.getField(vParam[0]);
		Map e = (Map)it.next();
		
		for (int i = 1; i < vParam.length; ++i)
		{
			String[] vDestExpr = vParam[i].split("=");
			oCtx.setField(vDestExpr[0], e.get(vDestExpr[1]));
		}
	}
}
